package org.mirim.nmt;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;

public class StartGame1 extends Activity{
	private static final int CALL_REQUEST=123;
	static int lev=0; 
	@Override
	 public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.startgame1);
	    
	        ImageButton lev1=(ImageButton)findViewById(R.id.btn_lev1_1);
	        lev1.setOnClickListener(new ImageButton.OnClickListener(){
	        	
	        	public void onClick(View v){
	        		lev=1;
	        		Intent intent=(new Intent(StartGame1.this,Levle1.class));
	        		intent.putExtra("1", lev);
	        			startActivityForResult(intent, CALL_REQUEST);
//startActivity(intent);
	        	}}); //lev1
	    
	        ImageButton lev2=(ImageButton)findViewById(R.id.btn_lev1_2);
	        lev2.setOnClickListener(new ImageButton.OnClickListener(){
	        	public void onClick(View v){
	        		lev=2;
	        		Intent intent=(new Intent(StartGame1.this,Levle1.class));
	        		intent.putExtra("2", lev);
        			startActivityForResult(intent, CALL_REQUEST);
//startActivity(intent);
	        	}}); //lev2
	 }
}